<!DOCTYPE HTML>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>队列管理</title>
	</head>
	<body>
		<table cellpadding='0' cellspacing='0' style='font-size: 11px; font-family: "Microsoft Yahei"'>
		<tr>
			<th width="50" height="20" align="left" style="border-bottom: 1px solid #CCC;">标签</th>
			<th width="55" align="left" style="border-bottom: 1px solid #CCC;">发送队列</th>
			<th width="50" align="left" style="border-bottom: 1px solid #CCC;">&nbsp;</th>
			<th width="55" align="left" style="border-bottom: 1px solid #CCC;">待发队列</th>
			<th width="50" align="left" style="border-bottom: 1px solid #CCC;">&nbsp;</th>
			<th width="100" align="left" style="border-bottom: 1px solid #CCC;">操作</th>
			<th align="left" style="border-bottom: 1px solid #CCC;">描述</th>
		</tr>
		<?php foreach($labels as $label): ?>
		<tr>
			<td height="25" style="padding-right: 10px; border-bottom: 1px solid #CCC;">{$label.id}</td>
			<td style="padding-right: 10px; border-bottom: 1px solid #CCC;">{$label.sends}/{$label.count}</td>
			<td style="padding-right: 10px; border-bottom: 1px solid #CCC;"><a href="/queue-clean/label-{$label.id}/waiting-2" target="_blank" title="清除该发送队列">清除 </a></td>
			<td style="padding-right: 10px; border-bottom: 1px solid #CCC;">{$label.waiting}</td>
			<td style="padding-right: 10px; border-bottom: 1px solid #CCC;"><a href="/queue-clean/label-{$label.id}/waiting-1" target="_blank" title="清除该待发队列">清除 </a></td>
			<td style="padding-right: 10px; border-bottom: 1px solid #CCC;">
				<a href="/queue-queue/label-{$label.id}" target="_blank" title="开始发送该队列">发送</a>
				<a href="/queue-clean/label-{$label.id}/waiting-0" target="_blank" title="清空该队列，包括发送队列和待发队列">清空</a>
				<a href="/email-index/label-{$label.id}" target="_blank" title="为该队列添加邮箱">添加</a>
			</td>
			<td style="border-bottom: 1px solid #CCC;">{$label.note}</td>
		</tr>
		<?php endforeach; ?>
		</table>
	</body>
</html>